@@ -160,7 +160,7 @@ module Agents |
||
160 | 160 |
interpolated['push_hubs'].presence || [] |
161 | 161 |
end |
162 | 162 |
|
163 |
- def receive_web_request(params, method, format, headers={}, request=ActionDispatch::Request.new({})) |
|
163 |
+ def receive_web_request(params, method, format) |
|
164 | 164 |
unless interpolated['secrets'].include?(params['secret']) |
165 | 165 |
if format =~ /json/ |
166 | 166 |
return [{ error: "Not Authorized" }, 401] |
@@ -57,7 +57,7 @@ module Agents |
||
57 | 57 |
end |
58 | 58 |
end |
59 | 59 |
|
60 |
- def receive_web_request(params, method, format, headers={}, request=ActionDispatch::Request.new({})) |
|
60 |
+ def receive_web_request(params, method, format) |
|
61 | 61 |
params = params.symbolize_keys |
62 | 62 |
if method != 'post' |
63 | 63 |
return ['Not Found', 404] |